export default class UiUtil {

    static loading(time, title) {
        wx.showToast({
            title: title || "正在加载...",
            icon: "loading",
            duration: time
        });
    }

    static toast(text) {
        wx.showToast({
            title: text,
            icon: 'success',
            duration: 500
        });
    }

    static goToBindUser() {
        wx.showModal({
            title: '提示',
            content: '请在个人信息中填写学号和密码',
            showCancel: false,
            success: function (res) {
                if (res.confirm) {
                    wx.navigateTo({
                        url: '../bind/bind',
                    });
                }
            }
        });
    }

}